<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
// use Tymon\JWTAuth\Contracts\JWTSubject;
// use Illuminate\Foundation\Auth\User as Authenticatable;

// class Charge extends Authenticatable implements JWTSubject
class Charge extends Model
{
    //table
    protected $table = 'charges';

    public $timestamps = false;

    // 受保护的字段
    protected $guards=[];
//
    // /**
    //  * Get the identifier that will be stored in the subject claim of the JWT.
    //  *
    //  * @return mixed
    //  */
    // public function getJWTIdentifier()
    // {
    //     return $this->getKey();
    // }

    // /**
    //  * Return a key value array, containing any custom claims to be added to the JWT.
    //  *
    //  * @return array
    //  */
    // public function getJWTCustomClaims()
    // {
    //     return [];
    // }

    public function customer()
    {
        return $this->belongsTo('App\Models\Customer');
    }
}
